package com.wxl.micro.service.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name="wms-service",path ="/wms", fallback = WmsFeignClientFaillback.class)
public interface WmsFeignClient {


    @GetMapping("/delivery")
    String delivery(@RequestParam("orderId") String orderId);// 这里的@RequestParam注解字段一定要加上字段的名字@RequestParam("orderId")


    @GetMapping("/timeout")
    String timeout();

    @GetMapping("/exception")
    String exception();

    @PostMapping("/post")
    String post(@PathVariable("id") String id);
}
